{% extends 'base_admin.html' %}

{% block edit %}
<div align="center" style="margin-top: 10% ;">
    <h1>编辑文章</h1>
    <form method="post">
        <div>
            <label for="title">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;标题</label>
            <input type="text" name="title" placeholder="标题" value="{{ request.form['title'] or post['title'] }}"/>
        </div>

        <div>
            <label for="content">内容</label>
            <textarea name="content" placeholder="文章内容">{{ request.form['content'] or post['content'] }}</textarea>
        </div>

        <div>
            <label for="sketch">简介</label>
            <textarea name="sketch" placeholder="简介|非必填">{{ request.form['sketch'] or post['sketch'] }}</textarea>
        </div>

        <div>
            <label for="picture">图片</label>
            <textarea name="picture"
                      placeholder="背景图片url|非必填">{{ request. form['picture'] or post['picture'] }}</textarea>
        </div>

        <div>
            <button type="submit">提交</button>
        </div>
    </form>
</div>
{% endblock %}


{# 不去显示其他占位符区域 #}
{% block yemei %}{% endblock %}
{% block zhuti %}{% endblock %}
{% block new %}{% endblock %}